#ifndef _LED_H_
#define _LED_H_

#include "main.h"

#define LED_RED		0x01
#define LED_BLUE	0x02


typedef enum{
	LED_MODE_ALL_OFF = 0,
	LED_MODE_ALL_ON,
	
    LED_MODE_RED_BREATHE_LIGHT,
    LED_MODE_RED_ON,
    LED_MODE_RED_OFF,
    LED_MODE_RED_ON_1S,
    LED_MODE_RED_ON_3S,
    LED_MODE_RED_ON_5S,
    LED_MODE_RED_FLASH,

    LED_MODE_BLUE_BREATHE_LIGHT,
    LED_MODE_BLUE_ON,
    LED_MODE_BLUE_OFF,
    LED_MODE_BLUE_ON_1S,
    LED_MODE_BLUE_ON_3S,
    LED_MODE_BLUE_ON_5S,
    LED_MODE_BLUE_FLASH,
}LED_MODE_E;

void app_led_gpio_init(void);

void app_led_on(uint8_t led);
void app_led_off(uint8_t led);

void app_led_red_timer_stop(void);
void app_led_blue_timer_stop(void);


void app_led_set_mode(uint8_t mode);

void app_led_init(void);


#endif

